/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pedagio.negocio.impl;

import com.pedagio.dominio.Exame;
import com.pedagio.negocio.ExameService;
import com.pedagio.negocio.base.impl.DefaultServiceImpl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;

/**
 *
 * @author pedroo
 */
public class ExameServiceImpl extends DefaultServiceImpl<Exame, Long> implements ExameService {
    
    public ExameServiceImpl(EntityManager em) {
        super(em, Exame.class);
    }

    public List<Exame> findAllExame() {
        String queryString = " FROM Exame" ;
        Query query = entityManager.createQuery(queryString);
        return query.getResultList();
    }
}
